package edu.nf.ch06.container.my;

import edu.nf.ch06.product.IPad;
import edu.nf.ch06.product.MiPhone;

/**
 * @author CSY
 * @date 2025 - 04 - 15
 * 容器工厂
 */
public class Main {
    public static void main(String[] args) {
        IPad ipad = ContainerFactory.getBean("ipad");
        ipad.play();

        MiPhone miPhone = ContainerFactory.getBean("miPhone");
        miPhone.call();
    }
}
